/**
 * @ Author: Yoann Meclot. MSay2
 * @ Created on: 2020-08-28 12:21:31
 * @ Modified on: 2020-09-29 10:45:52
 *
 * @version 1.3
 */
/**
 * Copyright (c) 2020 MSay2, Yoann Meclot - @msay2/tspoet
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import { CodeBlock } from "./CodeBlock.js";
import { TSAnnotation } from "./TSAnnotation.js";
import { Modifier, TypeName } from "./TSPoet.js";
/**
 * Init a new method.
 *
 * @class TSMethod
 * @version 1.2
 */
export declare class TSMethod
{
    static CONSTRUCTOR: string;
    
    constructor(builder: Builder);

    /**
     * Init a new constructor method.
     *
     * @type {Builder}
     * @since 1.1
     */
    static constructorBuilder(): Builder;

    /**
     * Init a new method.
     *
     * @param name The name of the method.
     * @throws {NullPointerException} Check if the name is null.
     * @type {Builder}
     * @since 1.0
     */
    static methodBuilder(name: string): Builder;
}
/**
 * @version 1.2
 */
declare class Builder 
{
    constructor(name: string);
    /**
     * Add a modifiers for the method.
     *
     * @param modifiers The modifiers to be added.
     * @throws {IllegalArgumentException} If the modifiers contain the static, export, abstract modifiers for the constructor.
     * @type {Builder}
     * @since 1.0
     */
    addModifiers(...modifiers: Modifier[]): Builder;

    /**
     * Add a documentation.
     *
     * @param arg Your comment.
     * @type {Builder}
     * @since 1.2
     */
    addDoc(arg: string): Builder;

    /**
     * Add a annotation for the method.
     *
     * @param tsAnnotation The annotation to be added.
     * @throws {IllegalStateException} If you attempt annotated the constructor
     * @type {Builder}
     * @since 1.0
     */
    addAnnotation(tsAnnotation: TSAnnotation): Builder;

    /**
     * Add a statement.
     *
     * @param arg Your code line to be added.
     * @throws {NullPointerException} Check if the arg is null.
     * @type {Builder}
     * @since 1.0
     */
    addStatement(arg: string): Builder;

    /**
     * Add a code block and manage it.
     *
     * @param codeBlock Your code block to be added.
     * @throws {NullPointerException} Check if the code block is null.
     * @type {Builder}
     * @since 1.0
     */
    addCodeBlock(codeBlock: CodeBlock): Builder;

    /**
     * Add a parameter.
     *
     * @param parameter The parameter to be added.
     * @throws {NullPointerException} Check if the TSParameter object is null.
     */
    addParameter(name: string, typeName: TypeName): Builder;

    /**
     * Transtype the method.
     *
     * @param classes The names of your classes.
     * @throws {IllegalStateException} If you attempt transtype the constructor.
     * @throws {NullPointerException} Check if the names classes is null.
     * @type {Builder}
     * @since 1.0
     */
    transtypeTo(...nameClasses: string[]): Builder;

    /**
     * Set a return type to method.
     *
     * @param typeName The return type.
     * @throws {IllegalStateException} If you attempt to apply a return value to constructor.
     * @throws {NullPointerException} Check if the TypeName object is null.
     * @type {Builder}
     * @since 1.0
     */
    return(typeName: TypeName): Builder;
    
    /**
     * Build a method.
     *
     * @throws {NullPointerException} Check if the name is null.
     * @throws {NullPointerException} Check if the modifiers is null.
     * @throws {NullPointerException} Check if the statements is null.
     * @throws {NullPointerException} Check if the code block is null.
     * @throws {NullPointerException} Check if the parameter is null.
     * @throws {NullPointerException} Check if the names classes to transtype is null.
     * @throws {NullPointerException} Check if the return type is null.
     * @type {TSMethod}
     * @since 1.0
     */
    build(): TSMethod;
}
export { };
//# sourceMappingURL=TSMethod.d.ts.map